package com.tubang.logistics.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 运输详情
 * </p>
 *
 * @author wsl
 * @since 2017-12-31
 */
@TableName("tb_transport")
public class TransportEntity extends BaseEntity<TransportEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 发货人id
     */
	@TableField("from_user_id")
	private String fromUserId;
    /**
     * 收货人
     */
	@TableField("to_user_id")
	private String toUserId;
    /**
     * 发货地址
     */
	@TableField("from_user_address_id")
	private String fromUserAddressId;
    /**
     * 收货地址
     */
	@TableField("to_user_address_id")
	private String toUserAddressId;
    /**
     * 计划提货时间
     */
	@TableField("take_plan_date")
	@DateTimeFormat
	private Date takePlanDate;
    /**
     * 计划卸货时间
     */
	@TableField("unload_plan_date")
	@DateTimeFormat
	private Date unloadPlanDate;
    /**
     * 备注
     */
	private String note;
    /**
     * 实际提货时间
     */
	@TableField("take_real_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date takeRealDate;
    /**
     * 实际卸货时间
     */
	@TableField("unload_real_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private Date unloadRealDate;

	/**
	 * 关联订单表id
	 */
	@TableField("order_id")
	private String orderId;




	public String getFromUserId() {
		return fromUserId;
	}

	public TransportEntity setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
		return this;
	}

	public String getToUserId() {
		return toUserId;
	}

	public TransportEntity setToUserId(String toUserId) {
		this.toUserId = toUserId;
		return this;
	}

	public String getFromUserAddressId() {
		return fromUserAddressId;
	}

	public TransportEntity setFromUserAddressId(String fromUserAddressId) {
		this.fromUserAddressId = fromUserAddressId;
		return this;
	}

	public String getToUserAddressId() {
		return toUserAddressId;
	}

	public TransportEntity setToUserAddressId(String toUserAddressId) {
		this.toUserAddressId = toUserAddressId;
		return this;
	}

	public Date getTakePlanDate() {
		return takePlanDate;
	}

	public TransportEntity setTakePlanDate(Date takePlanDate) {
		this.takePlanDate = takePlanDate;
		return this;
	}

	public Date getUnloadPlanDate() {
		return unloadPlanDate;
	}

	public TransportEntity setUnloadPlanDate(Date unloadPlanDate) {
		this.unloadPlanDate = unloadPlanDate;
		return this;
	}

	public String getNote() {
		return note;
	}

	public TransportEntity setNote(String note) {
		this.note = note;
		return this;
	}

	public Date getTakeRealDate() {
		return takeRealDate;
	}

	public TransportEntity setTakeRealDate(Date takeRealDate) {
		this.takeRealDate = takeRealDate;
		return this;
	}

	public Date getUnloadRealDate() {
		return unloadRealDate;
	}

	public TransportEntity setUnloadRealDate(Date unloadRealDate) {
		this.unloadRealDate = unloadRealDate;
		return this;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	@Override
	public String toString() {
		return "Transport{" +
			"fromUserId=" + fromUserId +
			", toUserId=" + toUserId +
			", fromUserAddressId=" + fromUserAddressId +
			", toUserAddressId=" + toUserAddressId +
			", takePlanDate=" + takePlanDate +
			", unloadPlanDate=" + unloadPlanDate +
			", note=" + note +
			", takeRealDate=" + takeRealDate +
			", unloadRealDate=" + unloadRealDate +
			"}";
	}
}
